import request from '@/api/request'

//订单列表
function getorderList(start, limit, data) {
    return request({
        url: `/lejuAdmin/order/findOrdersByPage/${start}/${limit}`,
        data,
        method: 'POST'
    })
}
//订单明细
function orderDetail(orderId, data) {
    return request({
        url: `/lejuAdmin/order/orderDetail/${orderId}`,
        data,
    })
}
//确认发货
function sendDone(data) {
    return request({
        url: '/lejuAdmin/order/sendDone',
        data,
        method: "POST"
    })
}
//强制确认收货
function forceRevice(orderId, data) {
    return request({
        url: `/lejuAdmin/order/receiveProductsForce/${orderId}`,
        data,
        method: 'POST'
    })
}

function closeOrder(orderId, data) {
    return request({
        url: `/lejuAdmin/order/finishOrder/${orderId}`,
        data,
        method: 'POST'
    })
}
export {
    getorderList,
    orderDetail,
    sendDone,
    forceRevice,
    closeOrder
}